$(function() {
    var sContent =
        "<div class='edit-box' id='imgDemo' >" +
        "<div class='header'>编辑井盖</h4> </div>" +
        "<div class='modal-body'>" +
        "<div class='input-group'><label'><span>地址:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'></div>" +
        "<div class='input-group'><label'><span>坐标:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'></div>" +
        "<div class='classify-input input-group'><label><span>编号:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'><label><span>材质:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'></div>" +
        "<div class='classify-input input-group'><label><span>类别:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'><label><span>寿命:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'></div>" +
        "<div class='classify-input input-group'><label><span>名称:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'><label><span>责任:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'></div>" +
        "<div class='classify-input input-group'><label><span>年份:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'><label><span>部门:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'></div>" +
        "<div class='classify-input input-group'><label><span>规格:</span></label><input class='form-control' type='text' id='' value='湖里区金泰路'></div>" +
        "<div class='remark-input input-group'><label><span>备注:</span></label><textarea class='form-control' type='text' id=''></textarea></div>"+
        " <div class='modal-footer'>"+
        "<button type='button' class='btn ensure-btn' id='add-user'>确定</button><button type='button' class='btn btn-default' data-dismiss='modal'>取消</button>"+
        "</div>"+
        " </div>" +
        "</div>";
    var map = new BMap.Map("map"); // 百度地图API定位一个厦门大位置功能
    var point = new BMap.Point(118.10388605, 24.48923061);
    var infoWindow = new BMap.InfoWindow(sContent); // 创建信息窗口对象
    map.centerAndZoom(point, 15);
    map.enableScrollWheelZoom();
    //创建井盖小图标
    var pt = new BMap.Point(118.10388605, 24.5);
    var myIcon = new BMap.Icon("images/box.png", new BMap.Size(300, 157));
    var marker2 = new BMap.Marker(pt, { icon: myIcon }); // 创建标注
    map.addOverlay(marker2);
    marker2.addEventListener("click", function() {
        this.openInfoWindow(infoWindow);
       
    });
    //鼠标自动扩展
    var overlays = [];
    var overlaycomplete = function(e) {
        overlays.push(e.overlay);
    };

})
